<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="./css/loading.css">
  <link rel="stylesheet" href="./css/mint-ui.min.css">
  <link rel="stylesheet" href="./css/element-ui.css">
  <link rel="stylesheet" href="./css/logistics.css">
</head>
<body>
  <div id="appLoading">
   <img src="./images/loading.gif" width="50px" height="50px">
   <div class="loading-text">加载中......</div>
  </div>
  <div id="logistics" style="display:none">
    <mt-header title="物流详情">
      <mt-button onclick="javascript:history.back(-1);" icon="back">返回</mt-button>
    </mt-header>
    <div class="log-head">
      <div class="log-head-msg">
        <span>运单号： </span>{{dealNum}}
      </div>
      <div class="log-head-msg">
        <span>快递公司： </span>{{packagecamp}}
      </div>
    </div>
    <div class="log-msg">
      <div class="log-msg-elem" v-for="(msg,index) in logMsg" :class="{newste : index===0}">
        <div class="msg-dels">{{msg.msg}}</div>
        <div class="msg-time">{{msg.time}}</div>
      </div>
    </div>
  </div>
</body>
  <script src="./js/vue.min.js"></script>
  <script src="./js/element-ui.js" charset="utf-8"></script>
  <script src="https://unpkg.com/mint-ui/lib/index.js"></script>
  <script type="text/javascript">
    new Vue({
      el: "#logistics",
      data(){
        return {
          dealNum: 62331183620,
          packagecamp: "中通快递",
          logMsg: [
            {
              msg: "包裹到达南昌市",
              time: "2018-05-31 10:44:32"
            },
            {
              msg: "订单在过海关啦，32u，3488383吧还后一，39493种就覅加热i就",
              time: "2018-05-27 10:44:32"
            },
            {
              msg: "订单正在审核",
              time: "2018-05-22 10:44:32"
            },
            {
              msg: "你已提交订单",
              time: "2018-05-20 10:44:32"
            },
            {
              msg: "你已提交订单",
              time: "2018-05-20 10:44:32"
            },
            {
              msg: "你已提交订单",
              time: "2018-05-20 10:44:32"
            },
            {
              msg: "你已提交订单",
              time: "2018-05-20 10:44:32"
            },
            {
              msg: "你已提交订单",
              time: "2018-05-20 10:44:32"
            },{
              msg: "你已提交订单",
              time: "2018-05-20 10:44:32"
            }
          ]
        }
      },
      mounted(){
        document.getElementById('logistics').style.display = 'block';
        document.getElementById('appLoading').style.display = 'none';
      }
    })
  </script>
</html>
